package com.pig4cloud.pig.admin.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * 小程序端用户表
 *
 * @author pig
 * @date 2025-04-08 19:43:47
 */
@Data
@TableName("tb_user")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "小程序端用户表")
public class TbUserEntity extends Model<TbUserEntity> {

 
	/**
	* id
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="id")
    private Long id;
 
	/**
	* openid
	*/
    @Schema(description="openid")
    private String openid;
 
	/**
	* username
	*/
    @Schema(description="username")
    private String username;
 
	/**
	* email
	*/
    @Schema(description="email")
    private String email;
 
	/**
	* createdAt
	*/
    @Schema(description="createdAt")
    private LocalDateTime createdAt;
 
	/**
	* updatedAt
	*/
    @Schema(description="updatedAt")
    private LocalDateTime updatedAt;

	/**
	* 创建人
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建人")
    private String createBy;

	/**
	* 更新人
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新人")
    private String updateBy;

	/**
	* 是否删除(0否1是)
	*/
    @TableLogic
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="是否删除(0否1是)")
    private Integer delFlag;

	/**
	* 租户ID
	*/
    @Schema(description="租户ID")
    private Long tenantId;
}
